
<script type="text/javascript" src="<?=$this->baseUrl()?>/js/jquery-1.2.1.pack.js"></script>

<script type="text/javascript">
function checkPenerima(){
    if(document.getElementById('penerima-penerima').checked){
           
            $.post("<?=$this->url(array('controller'=>'buyer',
            'action'=>'getdetail'),null,true)?>", {detail:"address",id:'<?=$this->buyerId?>'},
                                        function(data){
                
                document.getElementById('receiver_address').value=data;
			});
            $.post("<?=$this->url(array('controller'=>'buyer',
            'action'=>'getdetail'),null,true)?>", {detail:"city",id:'<?=$this->buyerId?>'},
                                        function(data){

                document.getElementById('receiver_city').value=data;
			});
             $.post("<?=$this->url(array('controller'=>'buyer',
            'action'=>'getdetail'),null,true)?>", {detail:"zip",id:'<?=$this->buyerId?>'},
                                        function(data){

                document.getElementById('receiver_zip').value=data;
			});
            $.post("<?=$this->url(array('controller'=>'buyer',
            'action'=>'getdetail'),null,true)?>", {detail:"province",id:'<?=$this->buyerId?>'},
                                        function(data){

                document.getElementById('receiver_province').value=data;
			});
                        $.post("<?=$this->url(array('controller'=>'buyer',
            'action'=>'getdetail'),null,true)?>", {detail:"name",id:'<?=$this->buyerId?>'},
                                        function(data){

                document.getElementById('receiver_name').value=data;
			});
    }else{
       "";
       document.getElementById('receiver_name').value="";
       document.getElementById('receiver_city').value=""; 
       document.getElementById('receiver_zip').value=""; 
       document.getElementById('receiver_address').value="";
    }
    
}
</script>
   <style>
    .dContent td{
        padding-right: 7px;
        padding-left: 7px;
        color:#696969;
        font-family:fantasy;
    }
   .dContent input{
        padding-right: 7px;
        padding-left: 7px;
        color:#696969;
        font-family:fantasy;
    }
    .dContent label{
        padding-right: 7px;
        padding-left: 7px;
        color:#696969;
        font-family:fantasy;
    }
    .dContent tr:hover td{
        padding-right: 7px;
        padding-left: 7px;
        color:#4682B4;
        font-family:fantasy;
        cursor: pointer;
    }

    .dContent  thead{
        text-align:center;
        color: #4682B4;
        font-family:fantasy;
        font-size: 14;
    }
     .dContent a{
        color:#0066CC;
        text-decoration: none;
    }
     .dContent a:hover{
        color: #4682B4;
        cursor: pointer;
        text-decoration: none;
    }


</style>

<div class="dContent">
<?php if($this->done){
echo $this->message;

}else{
?>
<?= $this->message; ?>
<?=$this->form;?>
<?php }?>
</div>